Optimal. Leaf size=209 \[ \frac {\left (a^2+2 b^2\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {a+b \cos (c+d x)}}+\frac {a \tan (c+d x) \sqrt {a+b \cos (c+d x)}}{d}-\frac {a \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {3 a b \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {a+b \cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.54, antiderivative size = 209, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 9, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.391, Rules used = {2799, 3059, 2655, 2653, 3002, 2663, 2661, 2807, 2805} \[ \frac {\left (a^2+2 b^2\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {a+b \cos (c+d x)}}+\frac {a \tan (c+d x) \sqrt {a+b \cos (c+d x)}}{d}-\frac {a \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {3 a b \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {a+b \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2655
Rule 2661
Rule 2663
Rule 2799
Rule 2805
Rule 2807
Rule 3002
Rule 3059
Rubi steps
\begin {align*} \int (a+b \cos (c+d x))^{3/2} \sec ^2(c+d x) \, dx &=\frac {a \sqrt {a+b \cos (c+d x)} \tan (c+d x)}{d}+\int \frac {\left (\frac {3 a b}{2}+b^2 \cos (c+d x)-\frac {1}{2} a b \cos ^2(c+d x)\right ) \sec (c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx\\ &=\frac {a \sqrt {a+b \cos (c+d x)} \tan (c+d x)}{d}-\frac {1}{2} a \int \sqrt {a+b \cos (c+d x)} \, dx-\frac {\int \frac {\left (-\frac {3 a b^2}{2}-\frac {1}{2} b \left (a^2+2 b^2\right ) \cos (c+d x)\right ) \sec (c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx}{b}\\ &=\frac {a \sqrt {a+b \cos (c+d x)} \tan (c+d x)}{d}+\frac {1}{2} (3 a b) \int \frac {\sec (c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx-\frac {1}{2} \left (-a^2-2 b^2\right ) \int \frac {1}{\sqrt {a+b \cos (c+d x)}} \, dx-\frac {\left (a \sqrt {a+b \cos (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}} \, dx}{2 \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}\\ &=-\frac {a \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {a \sqrt {a+b \cos (c+d x)} \tan (c+d x)}{d}+\frac {\left (3 a b \sqrt {\frac {a+b \cos (c+d x)}{a+b}}\right ) \int \frac {\sec (c+d x)}{\sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}}} \, dx}{2 \sqrt {a+b \cos (c+d x)}}-\frac {\left (\left (-a^2-2 b^2\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}}} \, dx}{2 \sqrt {a+b \cos (c+d x)}}\\ &=-\frac {a \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {\left (a^2+2 b^2\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {a+b \cos (c+d x)}}+\frac {3 a b \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{d \sqrt {a+b \cos (c+d x)}}+\frac {a \sqrt {a+b \cos (c+d x)} \tan (c+d x)}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 11.18, size = 363, normalized size = 1.74 \[ \frac {4 a \tan (c+d x) \sqrt {a+b \cos (c+d x)}+b \left (-\frac {2 i \csc (c+d x) \sqrt {-\frac {b (\cos (c+d x)-1)}{a+b}} \sqrt {\frac {b (\cos (c+d x)+1)}{b-a}} \left (b \left (b \Pi \left (\frac {a+b}{a};i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \cos (c+d x)}\right )|\frac {a+b}{a-b}\right )-2 a F\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \cos (c+d x)}\right )|\frac {a+b}{a-b}\right )\right )-2 a (a-b) E\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \cos (c+d x)}\right )|\frac {a+b}{a-b}\right )\right )}{b^2 \sqrt {-\frac {1}{a+b}}}+\frac {8 b \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{\sqrt {a+b \cos (c+d x)}}+\frac {10 a \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{\sqrt {a+b \cos (c+d x)}}\right )}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sec \left (d x + c\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.78, size = 740, normalized size = 3.54 \[ -\frac {\sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +a -b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (4 a b \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (-2 a^{2}-2 a b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-2 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, \left (\EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right ) a^{2}+2 \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right ) b^{2}-\EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right ) a^{2}+\EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right ) a b -3 \EllipticPi \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), 2, \sqrt {-\frac {2 b}{a -b}}\right ) a b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right ) a^{2}+2 b^{2} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right )-\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right ) a^{2}+\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, b \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right ) a -3 a b \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, \EllipticPi \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), 2, \sqrt {-\frac {2 b}{a -b}}\right )\right )}{\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +\left (a +b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +a +b}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sec \left (d x + c\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{3/2}}{{\cos \left (c+d\,x\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________